package feign.serive;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2016/11/1.
 */
public interface SampleService {
//    @RequestMapping(value = "/user/{id}",method = RequestMethod.GET)
//    public String getUserById(@PathVariable("id") String id);

    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public int add(@RequestParam("a")int a, @RequestParam("b")int b);
}
